Conversation
…behavior This finishes the pending CI drift cleanup by teaching branch-finish to honor stored guardexBase metadata and by bringing the focused test expectations back in line with the current branch naming, gitignore, self-update, and codex-agent output contracts. The change is migrated onto current main so it does not drag stale base-state back into the merge.\n\nConstraint: the fix must stay narrow to current CLI/test contract drift rather than reworking unrelated codex-agent hang behavior\nRejected: commit the old stale-base worktree directly | risked reintroducing already-merged base-state churn\nConfidence: medium\nScope-risk: narrow\nDirective: keep branch-name and output expectation updates tied to real runtime behavior; do not rewrite tests toward a hoped-for contract\nTested: named node --test run for changed doctor/start/finish/metadata cases (9 passing); node --test self-update reexec case; node --test codex-agent launch case; node --test codex-agent --codex-bin override case; openspec validate agent-codex-fix-remaining-cli-ci-failures-2026-04-21-11-42 --type change --strict; openspec validate --specs; git diff --check\nNot-tested: node --test --test-name-pattern codex-agent restores local branch and falls back to safe worktree start when starter script switches in-place test/install.test.js timed out after 120s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated cleanup/publish from a stale-base rescue worktree.
This publishes the remaining CLI CI drift fix on top of current main instead of the old unfinished worktree.
Verification performed:
Known gap: